package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 商品分类
 */
@Data
@Accessors(chain = true)
@TableName("goods_category")
public class GoodsCategory implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 父id
	 */
	private Integer pid;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 状态
	 */
	private Boolean status;
	/**
	 * 层级
	 */
	private Integer level;
	/**
	 * 
	 */
	private Date created;
	/**
	 * 
	 */
	private Date updated;

	@TableField(exist = false)
	private List<GoodsCategory> children;

}
